﻿
@model PagedList.IPagedList<VideoGiaitri.Models.topgame>
@using PagedList.Mvc; 
@{
    ViewBag.title = "video aoe hay và mới nhất";
    ViewBag.des = "tổng hợp các video aoe game đế chế mới, hay, độc nhất trong ngày";
    ViewBag.url = VideoGiaitri.Uti.domain+"/Home/Aoe";
    ViewBag.image = "/Images/Aoe.png";
    Layout = "~/Views/Shared/_LayoutAoe.cshtml";
    string content = "";
}

@foreach (var item in Model) {
    content += "<li>";
    content += "<a href=\"/Home/AoeXem/"+item.id+"\" target=\"_blank\">";
    content += "<span class=\"play-icon\"></span>";
    content += "<span class=\"background-video\"></span>";
    content += "<img src=\"" + item.image + "\" alt=\"" + Html.Raw(Server.HtmlDecode(item.title)) + "\" class=\"hot-video-img\">";
    content += "<span class=\"hot-video-title\">" + Html.Raw(Server.HtmlDecode(item.title)) + "</span>";
    content += "</a>";
    content += "</li>";
}

   <div class="col-md-video padding-r-0 padding-l-10" id="right-col">
            <div class="list-video">
                <h3 class="list-video-title">Mới nhất</h3>  
                 <ul class="list-hot-video">
                     @Html.Raw(content)
                 </ul>
                 <div class="page-navigation">
                     <ul class="navigation-bar">
                        @for (int i = 1; i <= Model.PageCount; i++) { 
                            <text><li><a href="/Home/Aoe?page=@i">@i</a></li></text>
                        }
                     </ul>
                </div>
                <div class="clear-fix"></div>                
            </div>
                              
    </div> 
    
